<%-- 
    Document   : AdminMenu
    Created on : Mar 1, 2011, 9:50:50 PM
    Author     : trietto
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <c:if test="${empty sessionScope.user}" >
            <c:redirect url="/Login.jsp" />
        </c:if>
        <jsp:useBean id="user" type="models.Member" scope="session" />
        <jsp:setProperty name="user" property="*" />
        <c:if test="${user.memberLevel!=1}" >
            <c:redirect url="/Default.jsp" />
        </c:if>
        <table border="0">
            <tr>
                <td><a href="/BookStoreWeb/Admin/AdminItemView.jsp">Book</a></td>
            </tr>
            <tr>
                <td><a href="/BookStoreWeb/Admin/AdminCardTypeView.jsp">CardType</a></td>
            </tr>
            <tr>
                <td><a href="/BookStoreWeb/Admin/AdminCategoryView.jsp">Category</a></td>
            </tr>
            <tr>
                <td><a href="/BookStoreWeb/Admin/AdminEditorialCategoryView.jsp">Editorial Category</a></td>
            </tr>
            <tr>
                <td><a href="/BookStoreWeb/Admin/AdminEditorialView.jsp">Editorial</a></td>
            </tr>
            <tr>
                <td><a href="/BookStoreWeb/Admin/AdminMemberView.jsp">Member</a></td>
            </tr>
            <tr>
                <td><a href="/BookStoreWeb/Admin/AdminOrderView.jsp">Order</a></td>
            </tr>
            <tr>
                <td><a href="/BookStoreWeb/Admin/UploadFiles.jsp">Upload Files</a></td>
            </tr>
        </table>

    </body>
</html>
